<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>错误 - 教师测评系统</title>
    <!-- Bootstrap 5 CSS -->
    <link th:href="@{/static/css/bootstrap.min.css}" rel="stylesheet">
    <!-- Bootstrap Icons -->
    <link th:href="@{/static/css/bootstrap-icons.css}" rel="stylesheet">

    <style>
    body {
      font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
      background-color: #f5f7fa;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .error-container {
      text-align: center;
      padding: 30px;
      max-width: 500px;
    }
    .error-icon {
      font-size: 64px;
      color: #dc3545;
      margin-bottom: 20px;
    }
    .error-title {
      font-size: 24px;
      margin-bottom: 10px;
      color: #333;
    }
    .error-message {
      color: #666;
      margin-bottom: 20px;
    }
    .home-btn {
      margin-top: 20px;
    }

    </style>
</head>
<body>
<div class="container">
    <div class="error-container">
        <div class="error-icon">
            <i class="bi bi-exclamation-triangle-fill"></i>
        </div>
        <h1 class="error-title">系统错误</h1>
        <p class="error-message" th:text="${message != null ? message : '系统发生错误，请稍后再试。'}">
            系统发生错误，请稍后再试。</p>
        <p class="error-message" th:if="${timestamp != null}">
            时间: <span th:text="${timestamp}">2025-04-24 10:44:55</span>
        </p>
        <p class="error-message" th:if="${status != null}">
            状态码: <span th:text="${status}">500</span>
        </p>
        <p class="error-message" th:if="${error != null}">
            错误: <span th:text="${error}">Internal Server Error</span>
        </p>
        <a href="/h5/index" class="btn btn-primary home-btn">
            <i class="bi bi-house-door-fill me-1"></i> 返回首页
        </a>
    </div>
</div>
</body>
</html>
